{template /common/header} 

<div class="app_body">
	<div class="app_jfzdShiJian">
    	时间：<input type="text" id="start" name="start" readonly="readonly" class="input_2"  value="<?php echo date('Y-m-d',$start!=""?$start:time());?>"   nullmsg="请输入选择日期！"/>
         至 <input type="text" id="end" name="end" readonly="readonly" class="input_2"  value="<?php echo date('Y-m-d',$end!=""?$end:time());?>"    nullmsg="请输入选择日期！"/>
    </div><input type="button" value="查询" class="btnLan" />
</div>
<div class="app_jfzdJiLu">
	<table>
    	<tr>
        	 <th>时间</th>
	                                    <th><?php echo C('site_integralname')?>获得</th>
                                        <th>类型</th>
	                                    <th><?php echo C('site_integralname')?>详情</th>
        </tr>
        	<?php foreach ($list["list"] as $k => $v): ?>
	                                <tr>
	                                	<td>{date('Y-m-d H:i:s',$v[time])}</td>
	                                	<td><span  class="casble-c1">{if $v[pay_points] >0 }+{$v[pay_points]}{else} {$v[pay_points]} {/if}</span></td>
                                        <td>{$points_type[$v[type]]}</td>
	                                	<td class="casble-c2"><span>{$v[descript]}</span></td>
	                                </tr>
	                                 <?php endforeach ?>
    </table>
</div>
<div class="pagefooter pageactivity">
  <div class="pagefooter-01 fr">{$list[page]}</div>
</div>
<?php echo jsfile('hddate');?> 
<script>
var start = {
    elem: '#start',
    format: 'YYYY-MM-DD',
    max: laydate.now(),
    istime: true,
    istoday: false,
    choose: function(datas){
         end.min = datas; //开始日选好后，重置结束日的最小日期
         end.start = datas //将结束日的初始值设定为开始日
    }
};
var end = {
    elem: '#end',
    format: 'YYYY-MM-DD',
    max: laydate.now(),
    istime: true,
    istoday: false,
    choose: function(datas){
        start.max = datas; //结束日选好后，重置开始日的最大日期
    }
};
laydate(start);
laydate(end);
$(".btnLan").click(function(){
	window.location.href="{U('coupons/score')}&start="+$("#start").val()+"&end="+$("#end").val();
	//$("#search_form").submit();	
})
</script>
{template /common/footer}